package com.zyong.design.pattern.iterator.case1;

/**
 * 抽象迭代器角色接口
 * @program: zyong-design-pattern
 * @ClassName: StudentIterator
 * @author: zyong
 * @create: 2024-06-01 08:20
 */
public interface StudentIterator {
    /**
     * 判断是否还有元素
     * @return
     */
    boolean hasNext();

    /**
     * 获取下一个元素
     * @return
     */
    Student next();
}
